package com.cy.milktea.mapper;

import com.cy.milktea.pojo.Drink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrinkMapper {

    int insertAllTest(Drink drink);

    int insert(Drink drink);

    int delete(Integer id);

    int update(Drink drink);

    String selectImageById(Integer id);

    List<Drink> selectByNameAndStatus(@Param("name") String name, @Param("status") Integer status);

    int selectByNameAndCupSize(@Param("name") String name,@Param("cupSize") String cupSize);
}
